#include "odbclib.h"

ODBClib::ODBClib()
{

}

QSqlDatabase ODBClib::connectdb()
{
        QSqlDatabase db = QSqlDatabase::addDatabase("QODBC");
            db.setDatabaseName("myqicq");
            db.setUserName("root");
            db.setPassword("123456");
            db.open();
            return db;
}
